//
//  SHUserCenterHttp.h
//  JiFengDaRen
//
//  Created by SH_iOS on 2017/6/1.
//  Copyright © 2017年 SH_iOS. All rights reserved.
//

#import <Foundation/Foundation.h>
@class UserModel;
@interface SHUserCenterHttp : NSObject

/**
 获取用户基本信息

 @param success <#success description#>
 @param complection <#complection description#>
 @param failure <#failure description#>
 */
+ (void)requstUserInfoSuccess:(void(^)(UserModel *userModel))success  complection:(void(^)(id result))complection      failure:(void(^)(id erro))failure;

/**
 查询用户实名状态

 @param success <#success description#>
 @param failure <#failure description#>
 */
+ (void)checkUserCustStatusSuccess:(void(^)(int  status))success   failure:(void(^)(int  status))failure ;

/**
 查询用户绑卡状态

 @param success <#success description#>
 @param failure <#failure description#>
 */
+ (void)checkUserCardBundingStatusSuccess:(void(^)(int  status))success   failure:(void(^)(int  status))failure;


/**
 获取银行信息

 @param bankProId 省份
 @param bankCityId 城市
 @param success
 @param complection 
 */
+ (void)getBankCnapsCodeBankProId:(NSString *)bankProId  bankCityId:(NSString *)bankCityId success:(void(^)(NSMutableArray *bankInfoArray))success  complection:(void(^)(id result))complection ;





#pragma mark -- 查询SH用户实名认证状态
+ (void)finderSHUserAuthStatusSuccess:(void(^)(int  status))success   failure:(void(^)(int  status))failure;

#pragma mark -- 查询SH用户绑卡状态
+ (void)finderSHUserBindCardStatusSuccess:(void(^)(int  status))success    complection:(void(^)(int status))complection    failure:(void(^)(int  status))failure;


/**
 获取银行卡

 @param usingChoices 1 收款卡  2 付款卡
 @param bankCardType 11 借记卡 12 信用卡
 @param success 返回银行卡列表
 */
+ (void)getBankCardLsitWithUsingChoices:(int)usingChoices bankCardType:(int)bankCardType success:(void (^)(NSMutableArray *bankCardListArray))success   complection:(void(^)(id result))complection      failure:(void(^)(id erro))failure;


/**
  添加，修改银行卡信息

 @param orgCardCode 旧卡卡号 修改时上传 ，添加传空
 @param bankCardCode 银行卡号
 @param bankCardFrontPic 银行卡正面照
 @param bankCardBackPic 银行卡反面照
 @param province 省份
 @param city 城市
 @param bankName 银行卡名称
 @param phone 手机号
 @param cnapsCode 联行号
 @param subBankName 支行名称
 @param bankCardType 11 借记卡  12 信用卡
 @param usingChoices 1 收款卡 2 付款卡
 @param success 
 @param complection <#complection description#>
 @param failure <#failure description#>
 */
+ (void)postBankCardInfoWithOrgCardCode:(NSString *)orgCardCode bankCardCode:(NSString *)bankCardCode bankCardFrontPic:(NSString *)bankCardFrontPic bankCardBackPic:(NSString *)bankCardBackPic  province:(NSString *)province city:(NSString *)city bankName:(NSString *)bankName phone:(NSString *)phone cnapsCode:(NSString *)cnapsCode subBankName:(NSString *)subBankName bankCardType:(int)bankCardType usingChoices:(int)usingChoices  success:(void (^)(id result))success   complection:(void(^)(id result))complection      failure:(void(^)(id erro))failure;
/**
 删除银行卡

 @param cardId 银行卡id
 @param success
 @param complection
 @param failure 
 */
+ (void)deleteBankCardWithCardId:(NSString *)cardId success:(void (^)(id result))success   complection:(void(^)(id result))complection      failure:(void(^)(id erro))failure;





/**
 设置默认收款卡

 @param cardId 银行卡id
 @param usingChoices 1 收款卡 2支付卡
 @param success <#success description#>
 @param complection <#complection description#>
 @param failure <#failure description#>
 */
+ (void)putDefaultBankCardWithCardId:(NSString *)cardId  usingChoices:(int)usingChoices  success:(void (^)(id result))success   complection:(void(^)(id result))complection      failure:(void(^)(id erro))failure;


/**
 修改四要素认证成功的银行卡的手机号

 @param cardNo 卡号
 @param phone 手机号
 @param success <#success description#>
 @param complection <#complection description#>
 @param failure <#failure description#>
 */
+ (void)putBankCardPhoneWithCardNo:(NSString *)cardNo phone:(NSString *)phone  success:(void (^)(id result))success   complection:(void(^)(id result))complection      failure:(void(^)(id erro))failure;
@end
